<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>分类后台管理</title>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/css/common.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/css/main.css"/>
    <link rel="stylesheet" type="text/css" href="../../../../Public/static/plugins/layui/css/layui.css">
    <script type="text/javascript" src="../../../../Public/static/plugins/layui/layui.js"></script>
    <script type="text/javascript" src="__PUBLIC__/Admin/js/libs/modernizr.min.js"></script>
    <style>
        .userinfo{float: right; margin-right: 20px;}
    </style>
</head>
<body>
<!--导航-->
<div>
    <h1 class="topbar-logo none"><a href="index.html" class="navbar-brand">后台管理</a></h1>
    <ul  class="layui-nav">
        <li class="layui-nav-item"><a class="on" href="__APP__/Home/Index/index">首页</a></li>
        <li class="layui-nav-item layui-this"><a href="/" target="_blank">网站首页</a></li>
        <li class="layui-nav-item"><a href="#">管理员</a></li>
        <li class="layui-nav-item userinfo"><a href="{:U('Login/logout')}">退出</a></li>
        <li class="layui-nav-item userinfo"><a href="{:U('Index/xgpass')}">修改密码</a></li>
    </ul>
</div>
<body class="container clearfix">
<!--侧面导航-->
<div class="sidebar-wrap">
    <ul class="layui-nav layui-nav-tree" lay-filter="test">
        <li class="layui-nav-item"><a href="{:U('Article/add')}">新建文章</a></li>
        <li class="layui-nav-item"><a href="{:U('Article/index')}">文章管理</a></li>
        <li class="layui-nav-item"><a href="{:U('Fl/index')}">分类管理</a></li>
    </ul>
</div>
    <!--/sidebar-->
    <div class="main-wrap">
        <div class="result-wrap">
                <h1 style="font-weight: bold">分类管理</h1>
            <div class="result-content">
				<div style="margin-top: 10px" ><a class="layui-btn layui-btn-xs" href="{:U('Fl/add')}">新建分类</a><div>
				<div>
					<table class="layui-table">
                        <thead>
						<tr>
						<th>ID</th><th>排序</th><th>名称</th><th>编辑</th><th>删除</th>
						</tr>
                        </thead>
                        <volist name="list" id="vo">
                        <tr>
						<td>{$vo.id}</td>
                            <td>{$vo.flpx}</td>
                            <td>{$vo.flname} </td>
                            <td><a class="layui-btn layui-btn-xs" href="{:U('Fl/flbj',array('id'=>$vo['id']))}">编辑</a></td>
                            <td> <a class="layui-btn layui-btn-danger layui-btn-xs" href="{:U('Fl/delete',array('id'=>$vo['id']))}">删除</a></td>
						</tr>
						</volist>
					</table>
					<div>{$page}</div>
				</div>
            </div>
        </div>
    </div>
  </div>
</div>
</body>
<script>
    layui.use('element', function(){
        var element = layui.element;
    });
</script>
</html>